<div class="row">
    <div class="span12 marginbottom20">
        <form method="post" action="<?php echo $this->url_edit . @$edit->PROG_ID; ?>"  enctype="multipart/form-data">
            <div class="table_head"><h6><i class="icon-list-alt"></i>
			<?php
			if(@$edit->PROG_ID > 0)
			{
				echo 'Thông tin '.@$tresource->RES_NAME;
				
			}
			else {
				echo 'Thêm mới '.@$tresource->RES_NAME;
			}
			?></h6></div>
            <div class="subcont">
                <ul class="details">
					 
					 <li><?php echo $this->atheme->group_input2('edit[PROG_TITLE]', 'Tên Program', '', 'span6', @$edit->PROG_TITLE, 'text', ''); ?></li>
					 <li> <?php
				$arr_cate = array();
				$arr_cate[0] ='Danh mục';
				foreach ($categorys as $cate) {
					$arr_cate[$cate->CAT_ID] = $cate->CAT_NAME;
				}
				echo $this->atheme->group_select2('edit[CAT_ID]','Danh mục cha','','', $arr_cate,@$edit->CAT_ID,'style="width: 325px;"');
			?></li>
					 <li><?php echo $this->atheme->group_input2('edit[PROG_CODE]', 'Mã Program', '', 'span6', @$edit->PROG_CODE, 'text', ''); ?></li>
					 <li><?php echo $this->atheme->group_input2('edit[PROG_DESCRIPTION]', 'Chú thích Program', '', 'span6', @$edit->PROG_DESCRIPTION, 'text', ''); ?></li>
					 <li><?php echo $this->atheme->group_input2('edit[PROG_ORDER]', 'Sắp xếp', '', 'span6', @$edit->PROG_ORDER, 'text', ''); ?></li>
					 <li><?php echo $this->atheme->group_select2('edit[PROG_STATUS]','Trạng thái','','', array('1'=>'Hiện','0'=>'Ẩn'),@$edit->PROG_STATUS); ?></li>
					 <li><?php echo $this->atheme->group_input2('edit[PROG_COVER]', 'Link Cover', '', 'span6', @$edit->PROG_COVER, 'text', ''); ?></li>
                </ul>
				</div>
				 <br clear="both">
				<div class="table_head"><h6><i class="icon-list-alt"></i>
			SEO <?php echo @$tresource->RES_NAME;?></h6></div>
				<div class="subcont">
				<ul class="details">
			 
			<li><?php echo $this->atheme->group_input2('edit[SEO_H1]','H1 SEO','','', @$edit->SEO_H1);?></li>
			<li> <?php echo $this->atheme->group_input2('edit[SEO_KEYWORD]','Keyword SEO','','', @$edit->SEO_KEYWORD);?></li>
			
			<li><?php echo $this->atheme->group_input2('edit[SEO_DESCRIPTION]','Description SEO','','', @$edit->SEO_DESCRIPTION);?></li>
			
			<li><?php echo $this->atheme->group_input2('edit[SEO_METATITLE]','MetaTitle SEO','','', @$edit->SEO_METATITLE);?></li>
			 </ul>
                <ul class="span8">
                   <input type="submit" name="send" class="btn btn-primary" value="<?php
			if(@$edit->PROG_ID > 0)
			{
				echo 'Lưu';
				
			}
			else {
				echo 'Thêm mới';
			}
			?>"/>
			<a href="<?php echo $this->url_index;?>" class="btn">Trở ra</a>
                </ul>
                <br clear="both">

            </div>

        </form>
    </div>
</div>